{% extends "admin/base.html" %}

{% block extrastyle %}
<style type="text/css">
	@import "/media/js/simp/dojo/resources/dojo.css";
	@import "/media/js/simp/dijit/themes/tundra/tundra.css";
	/*@import "/media/js/simp/dojox/grid/_grid/tundraGrid.css";*/
	@import "/media/js/simp/simp/simpTundra.css";
</style>
{% endblock extrastyle %}

{% block extrahead %}
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />
<meta http-equiv="PRAGMA" content="NO-CACHE" /> 
{% googleanalytics %}
<script type="text/javascript">
var djConfig = {
	parseOnLoad: true,
	isDebug: true, 
	debugAtAllCosts: false,
	usePlainJson: true,
};
</script>
<script type="text/javascript" src="/media/js/simp/dojo/dojo.js"></script>

<script type="text/javascript">
	dojo.require("dojo.parser");
	dojo.require("dijit.form.Button");
	
</script>
{% endblock extrahead %}

{% block bodyclass %}tundra{% endblock %}

{% block content %}
<div id="simpDemoImageSelectArea" style="width: 1100px; margin: auto; margin-left: auto;">
	<h1>django-simp demo gallery</h1>
	{% if demoImage %}
	<h2>{{demoImage.title}}</h2>
	{% endif %}
	<p>
		this is the gallery of demo editings from differend users<br />	
	</p>
	<div class="simpDemoGallery" style="width: 1100px; margin: auto; display: block;">
		{% for image in images %}
		<div class="simpDemoGalleryImage" style="height: 200px; width: 200px; margin: 10px; float: left;">
			<div stlye="margin: auto;">
				<a href="/simpdemo/gallery/view/{{image.pk}}/">
					<img src="{{image.get_image_thumb}}" alt="gallery image" />
				</a>
			</div>
		</div>
		{% endfor %}
	</div>
	<div style="width; 1000px; height: 30px; display: block;"> 
	{% if prevPage %}
	<a style="float:left;" href="/simpdemo/gallery/{{demoImageId}}/{{prevPage}}/">prev</a>
	{% endif %}
	{% if nextPage %}
	<a style="float:right;" href="/simpdemo/gallery/{{demoImageId}}/{{nextPage}}/">next</a>
	{% endif %}
	</div>
	<div style="width: 1100px; height: 50px; display: block;">
		<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
		All <span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">images</span> are licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.<br />
	</div>
</div>
{% endblock content %}
